import Navbar from '../components/navbar.vue'
import Tabbar from '../components/tabbar.vue'
const routes = [
  {
    path: '/',
    components: {
      default: () => import('../views/home.vue'),
      footer: Tabbar,
    },
    meta: {
      title: '首页',
      icon: 'home-o',
      inMenu: true,
    },
  },
  {
    path: '/category',
    components: {
      header: Navbar,
      default: () => import('../views/category/category.vue'),
      footer: Tabbar,
    },
    meta: {
      title: '分类',
      icon: 'apps-o',
      inMenu: true,
      topName: '小米Lite'
    },

  },
  {
    path: '/search/search',
    components: {
      header: Navbar,
      default: () => import('../views/search/search.vue'),
      footer: Tabbar,
    },
    meta: {
      title: '发现',
      icon: 'search',
      inMenu: true,
      topName: '小米Lite'
    },
  },
  {
    path: '/search/precedence/precedenceWin',
    components: {
      header: Navbar,
      default: () => import('../views/search/precedence/precedenceWin.vue')
    },
    meta: {
      title: '发现',
      icon: 'search',
      // inMenu: true,
      topName: '小米Lite'
    },
  },
  {
    path: '/search/precedence/precedence',
    components: {
      header: Navbar,
      default: () => import('../views/search/precedence/precedence.vue')
    },
    meta: {
      title: '发现',
      icon: 'search',
      // inMenu: true,
      topName: '小米Lite'
    },
  },
  {
    path: '/search/precedence/offlineStores',
    components: {
      header: Navbar,
      default: () => import('../views/search/precedence/offlineStores.vue')
    },
    meta: {
      title: '发现',
      icon: 'search',
      // inMenu: true,
      topName: '小米Lite'
    },
  },
  {
    path: '/cart',
    components: {
      header: Navbar,
      default: () => import('../views/cart/cart.vue'),
      footer: Tabbar,
    },
    meta: {
      title: '购物车',
      icon: 'cart-o',
      inMenu: true,
      topName: '购物车'
    },
  },
  {
    path: '/mine',
    components: {
      header: Navbar,
      default: () => import('../views/mine.vue'),
      footer: Tabbar,
    },
    meta: {
      title: '我的',
      icon: 'user-o',
      inMenu: true,
      topName: '小米Lite'
    }
  },
  {
    path: '/goods_detail',
    components: {
      // header: Navbar,
      default: () => import('../views/category/goodsDetail.vue'),
    },
  },
  {
    path: '/pay',
    components: {
      header: Navbar,
      default: () => import('../views/pay/pay.vue'),
    },
    meta: {
      topName: '订单结算'
    }
  },
  {
    path: '/Free',
    components: {
      header: Navbar,
      default: () => import('../views/Free shipping.vue'),
      footer: Tabbar,
    },
    meta: {
      title: '分类',
      topName: '小米Lite'
    },
  },
  {
    path: '/Skip',
    components: {
      header: Navbar,
      default: () => import('../views/skip.vue'),
      footer: Tabbar,
    },
    meta: {
      title: '打折',
      topName: '小米Lite'
    },
  },
  {
    path: '/Homesearch',
    components: {
      header: Navbar,
      default: () => import('../views/homesearch.vue'),
      footer: Tabbar,
    },
    meta: {
      title: '打折',
      topName: '小米Lite'
    },
  },
  {
    path: '/login',
    components: {
      header: Navbar,
      default: () => import('../views/login/login.vue'),
      footer: Tabbar,
    },
    meta: {
      topName: '用户登录'
    },
  },
  {
    path: '/Free',
    components: {
      header: Navbar,
      default: () => import('../views/Free shipping.vue'),
      footer: Tabbar,
    },
    meta: {
      title: '分类',
      topName: '小米Lite'
    },
  },
  {
    path: '/Skip',
    components: {
      header: Navbar,
      default: () => import('../views/skip.vue'),
      footer: Tabbar,
    },
    meta: {
      title: '打折',
      topName: '小米Lite'
    },
  },
  {
    path: '/Homesearch',
    components: {
      header: Navbar,
      default: () => import('../views/homesearch.vue'),
      footer: Tabbar,
    },
    meta: {
      title: '打折',
    },
  },
  {
    path: '/search/precedence/Offline',
    components: {
      header: Navbar,
      default: () => import('../views/search/precedence/Offline.vue'),
      footer: Tabbar,
    },
    meta: {
      title: '打折',
      topName: '小米Lite'
    },
  },
  {
    path: '/test',
    components: {
      header: Navbar,
      default: () => import('../views/test.vue'),
      footer: Tabbar,
    },
  },
  {
    path: '/explain',
    components: {
     
      default: () => import('../views/explain.vue'),
      footer: Tabbar,
    },
  },
]
export default routes